package vip.specimen.system.datasource.validation.question;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.UUID;

/**
 * *@Author: 余浪人
 * *@Date：2021/4/22 17:43
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Getter
@Setter
public class ColumnValidation {
    @ColumnUnique
    @NotBlank(message = "分类名称")
    private String columnName;
    @Min(value = 0, message = "请输入合法的顺序")
    @Max(value = 9999999, message = "请输入合法的顺序")
    private Integer sequence = 0;
    private String columnKeyword;
    @Size(max = 1024, message = "分类描述过长")
    private String columnDescription;
    private boolean indexIsShow = false;
    @SuperiorNotSelf
    private UUID superior;
}
